package com.jk.smartelderlycare.controller;

import com.jk.smartelderlycare.dto.SysSign;
import com.jk.smartelderlycare.interfaces.SysSignServiceApi;
import com.jk.smartelderlycare.pojo.PagedResponse;
import com.jk.smartelderlycare.service.SysSignService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hhk
 * @version 1.0
 * @ClassName SysSignController
 * @program: smart-elderly-care
 * @description: TODO
 * @date 2024/11/15 15:38
 */
@RestController
@Slf4j
public class SysSignController implements SysSignServiceApi {
    @Autowired
    private SysSignService sysSignService;
    /**
     * @description: 分页查询
     * @param: [sysSign, pageNum, pageSize]
     * @return: com.jk.smartelderlycare.pojo.PagedResponse<com.jk.smartelderlycare.dto.SysSign>
     * @author hhk
     * @date: 2024/11/15 15:38
     */
    @Override
    public PagedResponse<SysSign> findSysSignPaginationList(SysSign sysSign, Integer pageNum, Integer pageSize) {
        return sysSignService.findSysSignPaginationList(sysSign,pageNum,pageSize);
    }
    /**
     * @description: 通过
     * @param: [signId]
     * @return: void
     * @author hhk
     * @date: 2024/11/15 15:40
     */
    @Override
    public void updateStatusById(Long signId) {
        sysSignService.updateStatusById(signId);
    }
    /**
     * @description: 不通过
     * @param: [signId]
     * @return: void
     * @author hhk
     * @date: 2024/11/15 15:40
     */
    @Override
    public void alStatusById(Long signId) {
        sysSignService.alStatusById(signId);
    }
    /**
     * @description: 删除
     * @param: [signId]
     * @return: void
     * @author hhk
     * @date: 2024/11/15 16:03
     */
    @Override
    public void deleteSysSignById(Long signId) {
        sysSignService.deleteSysSignById(signId);
    }
}
